/**
 * 整个项目的api
 */

import request from './request'

export default {
  getTableData: ()=> request({
    url: '/home/getTableData',
    method: 'get',
  }),
  getCountData: ()=> request({
    url: '/home/getCountData',
    method: 'get',
  }),
  getChartData: ()=> request({
    url: '/home/getChartData',
    method: 'get',
  }),
  getUserData: (data)=> request({
    url: '/home/getUserData',
    method: 'get',
    data,
  }),
  deleteUser: (data)=> request({
    url: '/user/deleteUser',
    method: 'get',
    data,
  }),
  addUser: (data)=> request({
    url: '/user/addUser',
    method: 'post',
    data,
  }),
  editUser: (data)=> request({
    url: '/user/editUser',
    method: 'post',
    data,
  }),
}